@extends('public')
@section('content')
    <body>

    <div class="position_w">
        <div class="position">
            当前位置： <a href="{{url('/')}}">首页</a> &gt; <a href="{{url('article/newslist')}}">资讯</a>
        </div>
    </div>

    <div class="wrap">
        <div class="new_box">

            <div class="new_list">
                <ul>
                    @foreach($media as $k=>$v)
                        <li>
                            <div class="t_name"><a href="{{url('article/news/'.$v->id)}}">{{$v->title}}！</a></div>
                            <div class="time">{{$v->created_at}}</div>
                            <div class="txt">
                                {{$v->subtitle}}
                            </div>
                        </li>
                    @endforeach
                </ul>
            </div>

            <div class="page">
                @if ($media->hasPages())
                    <div class="pager">
                        {!! $media->appends($appends)->render() !!}
                    </div>
                @endif
            </div>

        </div>

    </div>
@stop